<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags"  prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'modify.jsp' starting page</title>
    
  </head>
  
  <body style="text-align: center;" >
    	<br>
    	<h2></h2>
    	<form action="Person_userUpdate.action" method="post">
	    	<table border="1" align="center;" width="40%">	
	    		<tr>
	    			<td colspan="3" align="center"> 修改person的信息  </td>
	    		</tr>
	    		
	    		<tr>
	    			<td width="30%">username</td>
	    			<td width="40%"> <input type="text" name="username" value='${person.username }'/> </td>
	    			<td> &nbsp; </td>
	    		</tr>
	    		
	    		<tr>
	    			<td>password</td>
	    			<td> <input type="text" name="password" value='${person.password }'> </td>
	    			<td> &nbsp; </td>
	    		</tr>
	    		<tr>
	    			<td>sex</td>
	    			<td> 
	    				<input type="radio" name="sex" value="男" ${person.sex=='男'?'checked':'' }/>男 &nbsp;
	    				<input type="radio" name="sex" value="女" ${person.sex=='女'?'checked':'' } />女
	    			</td>
	    			<td> &nbsp; </td>
	    		</tr>
	    		<tr>
	    			<td>age</td>
	    			<td> <input type="text" name="age" value='${person.age }'> </td>
	    			<td> &nbsp; </td>
	    		</tr>
	    		
	    		<input type="hidden" name="id" value='${person.id }'/> 
	    		
	    		<tr>
	    			<td>&nbsp;</td>
	    			<td> <input type="submit" value="提交"> </td>
	    			<td>&nbsp;</td>
	    		</tr>
	    		
	    	</table>
    	</form>
    	
  </body>
</html>
